#include "assert_test.hpp"
#include "vm.hpp"
#include "value.hpp"


namespace BMD
{
  void acc_equals_test::validate(VM* vm)
  {
    Value acc = vm->get_accumulator();
    if (!(acc == comp_value))
      throw acc_equals_error("accumulator, (" +
                             acc.get_type() + ")" +
                             acc.to_string() + 
                             ", does not match expected value, (" +
                             acc.get_type() + ")" + 
                             comp_value.to_string());
  }

  void does_not_reach_test::validate(VM* vm)
  {
    throw assert_test_error("control should not reach this point");
  }
}
